package com.lingyu.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;

import com.lingyu.biz.IUserBiz;
import com.lingyu.pojo.User;

@Controller
@RequestMapping("/user")
@SessionAttributes({"login"})
public class UserController {
	
	@Autowired
	private IUserBiz userBiz;
	
	@RequestMapping("/checkuser")
	public String checkUser(User user,Map<String, Object> map){
		
		User login = userBiz.checkUser(user);
		map.put("login", login);
		return "/topic/getalltopics.do";
	}

}
